package com.dayfly.tip.util;

import org.apache.commons.lang.math.RandomUtils;

/**
 * 
 * id生成器
 * @author dayfly
 * 
 */
public class IdGenerator {

	private static long getRandomId(long seed) {
		long random = RandomUtils.nextLong();
		return seed + random;
	}
	
	public static long getUserId(){
		return getRandomId(System.currentTimeMillis());
	}
	
	

}
